{# The drawer's meeting, live: how it is going, the admin's two actions (ask the bot to leave while it is in, delete once it is out), its facts (its owner by email), whom to give it to while nobody owns it (with accounts here: ``owners``), then the same notes and transcript as the Meetings page (_sections.html), with the meeting's threads loaded between them (_threads_body.html). While something is still happening it re-reads itself every few seconds, as the page does. #} {% from "components/macros/layout.html" import facts %} {% from "components/macros/form.html" import action, primary_button, select %} {% from "pages/meetings/_macros.html" import bot_steps, failure, status_line %} {% set base = prefix ~ "/" ~ meeting.id %} {% set with_threads = true %} {% set owner = (owners|default([]))|selectattr("id", "equalto", meeting.owner_user_id)|map(attribute="name")|first %}
{{ status_line(status, length) }} {% if can_leave %}{{ action("Ask it to leave", 'data-leave data-write hx-post="' ~ base ~ '/leave" hx-target="#meeting-body" hx-swap="outerHTML"', "warn") }}{% endif %} {% if can_delete %}{{ action("Delete", hx_dialog(base ~ "/confirm-delete", "data-write"), "danger") }}{% endif %}
{{ failure(meeting) }} {{ bot_steps(steps) }} {{ facts([ ("Bot", meeting.bot_name), ("Owner", owner or meeting.owner_user_id), ("Owner speaks as", me), ("Notes by", model_name), ]) }} {% if meeting.owner_user_id is none and owners %}
{{ select("user_id", owners, blank=None, label="Nobody owns it. Give it to", attrs="data-give") }} {{ primary_button("Give", type="submit") }}
{% endif %} {% include "pages/meetings/_sections.html" %}